namespace CxRomos.Core.Domain.Entities {
    public class ProfileAttributeType {
        public ProfileAttributeType() {}

        public virtual int ProfileAttributeTypeId { get; set; }
        public virtual string AttributeType { get; set; }
        public virtual string SortOrder { get; set; }
        public virtual int PrivacyFlagTypeId { get; set; }

        public override int GetHashCode() {
            var toReturn = base.GetHashCode();
            toReturn ^= ProfileAttributeTypeId.GetHashCode();

            return toReturn;
        }

        public override bool Equals(object obj) {
            if(obj == null) {
                return false;
            }

            var toCompareWith = obj as ProfileAttributeType;
            return toCompareWith == null ? false : (ProfileAttributeTypeId == toCompareWith.ProfileAttributeTypeId);
        }
    }
}